package datatypes;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Assignment implements Serializable {

	 
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Map <Soldier,Duty> dutyMap;
	
	public Assignment(){
		setDutyMap(new HashMap<Soldier,Duty>());
	}

	public Map <Soldier,Duty> getDutyMap() {
		return dutyMap;
	}

	public void setDutyMap(Map <Soldier,Duty> dutyMap) {
		this.dutyMap = dutyMap;
	}
	 
	// Assignment functionality
	public void addDutyAssignment(Soldier s,Duty d){
		dutyMap.put(s, d);
	}
}
